package com.ihr360.authority.sharing.util;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-05-07 10:05:41.
 */
public class BizModelUtil {
    private BizModelUtil() {
    }

    public static final String PAYROLL_CONFIG_ALIAS = "PAYROLL_CONFIG";
    public static final String PAYROLL_CONFIG_BIZ_MODEL = "PayrollConfig";

    public static final String ATTENDANCE_PLAN_ALIAS = "ATTENDANCE_PLAN";
    public static final String ATTENDANCE_PLAN_BIZ_MODEL = "AttendancePlan";

    public static final String SALARY_PLAN_ALIAS = "SALARY_PLAN";
    public static final String SALARY_PLAN_BIZ_MODEL = "SalaryPlan";

    public static final String PAYSLIP_RESULT_ALIAS = "PAYSLIP_RESULT";
    public static final String PAYSLIP_RESULT_BIZ_MODEL = "PayslipResult";

    public static String getBizModel(String ailas) {
        if (PAYROLL_CONFIG_ALIAS.equals(ailas)) {
            return PAYROLL_CONFIG_BIZ_MODEL;
        } else if (ATTENDANCE_PLAN_ALIAS.equals(ailas)) {
            return ATTENDANCE_PLAN_BIZ_MODEL;
        } else if (SALARY_PLAN_ALIAS.equals(ailas)) {
            return SALARY_PLAN_BIZ_MODEL;
        }else if (PAYSLIP_RESULT_ALIAS.equals(ailas)) {
            return PAYSLIP_RESULT_BIZ_MODEL;
        }
        return null;
    }
}
